package com.hsq.reflection.Class_;

public class Test {
    public static void main(String[] args) {
        new B();
        System.out.println("===========");
        System.out.println(B.num);
    }
}

class B{
    static{
        System.out.println("静态代码块被执行");
        num = 300;
    }
    static int num = 100;
    public B() {
        System.out.println("构造函数被执行");
    }
}
